package com.example.itrain.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 日盈亏
 * </p>
 *
 * @author rain
 * @since 2024-11-15
 */
@Data
@TableName("daily_income")
@ApiModel(value = "DailyIncome对象", description = "日盈亏")
public class DailyIncome implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("项目名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("项目编码")
    @TableField("code")
    private String code;

    @ApiModelProperty("亏盈金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("1 赚钱 0赔钱")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("日期")
    @TableField("date")
    private Date date;

    @ApiModelProperty("是否删除")
    @TableField("deleteFlag")
    private Integer deleteFlag;
}
